package com.factory.server.dto;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import com.factory.server.bo.UserTask;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author milos
 */
@XmlRootElement
public class UserTaskDTO {

    private String problemId;
    private String userId;
    private String inputId;
    private boolean done;

    public UserTaskDTO() {
    }

    public UserTaskDTO(String problemId, String userId, String inputId, boolean done) {
        this.problemId = problemId;
        this.userId = userId;
        this.inputId = inputId;
        this.done = done;
    }

    public UserTaskDTO(UserTask userTask) {
        this.problemId = userTask.getProblemId();
        this.userId = userTask.getUserId();
        this.inputId = userTask.getInputId();
        this.done = userTask.getDone();
    }

    public String getProblemId() {
        return problemId;
    }

    public void setProblemId(String problemId) {
        this.problemId = problemId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getInputId() {
        return inputId;
    }

    public void setInputId(String inputId) {
        this.inputId = inputId;
    }

    public boolean isDone() {
        return done;
    }

    public void setDone(boolean done) {
        this.done = done;
    }
}
